import request from "./request"

export const queryCouponList = (type) => {
  return request.get(`/coupon/list?type=${type}`)
}

export const addNewCoupon = (couponId) => {
  return request.post(`/coupon/add?couponId=${couponId}`)
}

export const queryUserPossessedCoupon = (type) => {
  return request.get(`/coupon/user/coupon?type=${type}`)
}